function get_date(s){
    var date=new Date(s);
    var year=date.getFullYear();
    var month=formateDate(date.getMonth()+1);
    var day=formateDate(date.getDate());
    return year+"-"+month+"-"+day;
}
function formateDate(s){
    if(s<10){
        return "0"+s;
    }
    return s;
}